package com.kaili.basic.service.impl;

/**
 * Created by xxx on 2019-03-07.
 */

import com.kaili.basic.mapper.OutboundReturnProductMapper;
import com.kaili.basic.pojo.entity.OutboundReturnProduct;
import com.kaili.basic.service.OutboundReturnProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author xxx
 * @Copyright: Copyright (c) 2017
 * @Company: 杭州凯立通信有限公司
 */
@Service
public class OutboundReturnProductServiceImpl implements OutboundReturnProductService {
    @Autowired
    OutboundReturnProductMapper outboundReturnProductMapper;

    @Override
    public int addOutboundReturnProduct(OutboundReturnProduct outboundReturnProduct) {
        return outboundReturnProductMapper.addOutboundReturnProduct(outboundReturnProduct);
    }

    @Override
    public int deleteOutboundReturnProduct(OutboundReturnProduct outboundReturnProduct) {
        return outboundReturnProductMapper.deleteOutboundReturnProduct(outboundReturnProduct);
    }

    @Override
    public List<OutboundReturnProduct> getOutboundReturnProductList(Long returnId) {
        return outboundReturnProductMapper.getOutboundReturnProductList(returnId);
    }

    @Override
    public OutboundReturnProduct getOutboundReturnProductById(Long id) {
        return outboundReturnProductMapper.getOutboundReturnProductById(id);
    }
}
